﻿using System;
using System.Collections;


namespace H.Y.Clipboard
{
    internal class APIs
    {
        private static Hashtable apis = new Hashtable();
        private static APIs instance = new APIs();
        private APIs()
        {
            apis.Add("signup", "/hyclipboard_server/signup");
            apis.Add("query", "/hyclipboard_server/query");
            apis.Add("login", "/hyclipboard_server/login");
            apis.Add("push", "/hyclipboard_server/push");
            apis.Add("fetch", "/hyclipboard_server/fetch");
            apis.Add("read", "/hyclipboard_server/read");
            apis.Add("alive", "/hyclipboard_server/alive");
        }
        public static APIs getInstance()
        {
            return instance;
        }

        public String getAPI(String operation)
        {

            return (String)apis[operation];
        }
    }
}
